package com.pig4cloud.pig.module.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 广告列对象 advert
 *
 * @author ruoyi
 * @date 2021-08-14
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("advert")
public class Advert implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 客户id
     */
    private Long sysUserId;

    /**
     * 广告标题
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String adTitle;

    /**
     * 前端显示的入口图片
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String previewImg;

    /**
     * 广告内容
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String adContent;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 添加人
     */
    private Integer createBy;

    /**
     * 状态 0 - 不显示  1 - 显示
     */
    private Integer state;

    /**
     * 删除标志 0 - 未删除 1 - 已删除
     */
    private Integer isDel;

	@TableField(exist = false)
	private String previewPath;
}
